﻿
     var Alert=ymPrompt.errorInfo;
    		function check()
    		{    		
    		  
    		   var name=document.getElementById("txtLoginName").value;
    		    var pwd=document.getElementById("txtLoginPwd").value;
    		    var validate=document.getElementById("txtValidate").value;
    		    if(name.length==0)
    		    {
    		        Alert('请输入姓名',null,null,'温馨提示',loginName);
    		       
    		        return false;
    		    }
    		    if(pwd.length==0)
    		    {
    		    
    		        Alert('请输入密码',null,null,'温馨提示',loginPwd);
    		        return false;
    		    }
    		    if(validate.length==0)
    		    {
    		        Alert("请输入验证码",null,null,"温馨提示",validateIsEmpty);
    		        return false;
    		    }
    		 
    		    return true;

    		}
    	
    	
			function loginName(){
			    document.getElementById("txtLoginName").focus();
				
			}
			function loginPwd(){
			    document.getElementById("txtLoginPwd").focus();
				
			}
			
			function validateIsEmpty()
			{
			    document.getElementById("txtValidate").value="";
			    $("#txtValidate").focus();
			}
			
		
			function btnMouseOut()
			{
			    
			   document.getElementById("btnLogin").className="btnOut";
			
			}
			
			function btnMouseOver()
			{
				   document.getElementById("btnLogin").className="btnOver";
			}
			
			
			function changeCode()
			{

			    //document.location.href = "Login.aspx";
			    
			    //Alert(document.getElementById("imgValidate").src);
			    document.getElementById("imgValidate").src = "ValiDateNumber.aspx?I="+new Date().getMilliseconds ();
			}